/**
 * @Author: Your name
 * @Date:   2024-03-06 11:50:59
 * @Last Modified by:   Your name
 * @Last Modified time: 2024-03-06 16:08:42
 */
'use client';

import { useState } from 'react';
import Link from 'next/link';

export default function Layout({ children }) {
  const [count, setCount] = useState(0);
  return (
    <>
      <div>
        <Link href="/dashboard/about">About</Link>
        <br />
        <Link href="/dashboard/settings">Settings</Link>
      </div>
      <h1>Layout {count}</h1>
      <button onClick={() => setCount(count + 1)}>Increment</button>
      {children}
    </>
  );
}
